package cn.itcast.itcaststore.service.Impl;

import cn.itcast.itcaststore.dao.Impl.IUserDao;
import cn.itcast.itcaststore.dao.UserDao;
import cn.itcast.itcaststore.domain.User;
import cn.itcast.itcaststore.service.UserService;

public class IUserService implements UserService {
    private UserDao userdao=new IUserDao();

    @Override
    public void addUser(User add_user) {
        userdao.addUser(add_user);
    }

    @Override
    public User getUser(String username) {
        User user=userdao.getUser(username);
        return user;
    }

    @Override
    public void modifyUser(User modify_user) {
        userdao.modifyUser(modify_user);
    }
}
